package vip.zhenzicheng.design_patterns.singleton.hungary;

/**
 * 饿汉式2
 *
 * @author zhenzicheng
 * @date: 2022-05-24 22:50
 */
public class SingletonStatic {
  private static final SingletonStatic INSTANCE;

  static {
    INSTANCE = new SingletonStatic();
  }

  private SingletonStatic() {
  }

  public static SingletonStatic getInstance() {
    return INSTANCE;
  }
}
